<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<jsp:include page="/base.jsp" />
<meta charset="UTF-8">
<meta name="author" content="order by dede58.com" />
<title>我的购物车-小米商城</title>
<link rel="stylesheet" type="text/css" href="mall/css/style.css">
</head>
<body>
	<!-- start header -->
	<!--end header -->

	<!-- start banner_x -->
	<%@ include file="top.jsp"%>


	<!--end header -->
	<%@ include file="header.jsp"%>
	<!-- start banner_x -->
	<div class="xiantiao"></div>
	<div class="gwcxqbj">
		<div class="gwcxd center">
			<div class="top2 center">
				<div class="sub_top fl"></div>
				<div class="sub_top fl">商品名称</div>
				<div class="sub_top fl">单价</div>
				<div class="sub_top fl">数量</div>
				<div class="sub_top fl">小计</div>
				<div class="clear"></div>
			</div>
			<c:forEach items="${shopCar}" var="shopCar">
				<div class="content2 center">
					<div class="sub_content fl"></div>

					<div class="sub_content fl">
						<img src="${shopCar.product.proPhoto}"
							style="height: 70px; width: 80px">
					</div>
					<div class="sub_content fl ft20">${shopCar.product.proName}</div>
					<div class="sub_content fl ">${shopCar.product.proPrice}</div>
					<div class="sub_content fl">${shopCar.count}</div>
					<div class="sub_content fl">${shopCar.product.proPrice*shopCar.count}</div>

					<div class="clear"></div>
				</div>
			</c:forEach>
			<form action="shop/doAddOrder">
			<input type="hidden" value="${sum}" name="sum">
				<select name="addressId">
					<c:forEach items="${address}" var="address">
						<option value="${address.rowId}">${address.provinceName}${address.cityName}${address.areaName}</option>
					</c:forEach>
				</select>
		</div>
		<div class="jiesuandan mt20 center">
			<div class="tishi fl ml20">
				<ul>
					<li><a href="./liebiao.html">继续购物</a></li>
					<div class="clear"></div>
				</ul>
			</div>
			<div class="jiesuan fr">
				<div class="jiesuanjiage fl">
					合计（不含运费）：<span>${sum}元</span>
				</div>

				<div class="jsanniu fr">
					<input class="jsan" type="submit" name="jiesuan" value="提交订单" />
				</div>
				</form>
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
		</div>

	</div>
	<!-- footer -->
	<%@ include file="foot.jsp"%>
</body>
</html>